terraform {

  required_version = ">= 0.14"

  required_providers {
    alicloud = {
      source  = "hashicorp/alicloud"
      version = "1.153.0"
    }
    random = {
      source  = "hashicorp/random"
      version = "3.1.0"
    }
    null = {
      source  = "hashicorp/null"
      version = "3.1.0"
    }
    helm = {
      source  = "hashicorp/helm"
      version = "2.4.1"
    }
    jenkins = {
      source  = "taiidani/jenkins"
      version = "0.9.0"
    }
    http-client = {
      source  = "dmachard/http-client"
      version = "0.0.3"
    }
  }
}

provider "alicloud" {
  profile = var.profile
  region  = var.region
}

provider "http-client" {
}

provider "jenkins" {
  server_url = "http://jenkins.jq.cn" # Or use JENKINS_URL env var
  username   = "admin"                # Or use JENKINS_USERNAME env var
  password   = "1"                    # Or use JENKINS_PASSWORD env var
  ca_cert    = ""                     # Or use JENKINS_CA_CERT env var
}